<template>
  <div>
    <Parent />
  </div>
</template>

<script setup>
// import Parent from './components/props/Parent.vue'
// import Parent from './components/emit/Parent.vue'
// import Parent from './components/vmodel/Parent.vue'
// import Parent from './components/refs/Parent.vue'

// import Parent from './components/provide/Parent.vue'
// import { provide } from 'vue';
// provide('list', [1, 2, 3, 4])

import Parent from './components/refs/Parent.vue'
import emitter from './components/mitt/mit'
emitter.on('add', (val) => {
  console.log(val);
})


</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.wrap{
  margin-bottom: 20px;
  width: 270px;
}
.wrap .form-control{
  height: 30px;
  width: 200px;
}
.btn{
  height: 36px;
  width: 50px;
  margin-left: 10px;
  background: rgb(30, 141, 214);
  border-radius: 2px;
  /* border: none; */
  border-color: rgb(30, 141, 214);
  color: #fff;
  cursor: pointer;
}
.child{
  width: 270px;
}
ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.list-item{
  background: #fff;
  height: 30px;
  line-height: 30px;
  padding: 2px 10px;
  border: 1px solid #eee;
  text-align: left;
}
</style>
